package com.turbo.cloud.core.base;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;
import java.util.List;
import java.util.function.Supplier;

/**
 * @author zhangluning
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
public class PageDynamic<T> extends Page<T> {

    /**
     * 表头
     */
    private List<ColumnStyle> columns;


    @Data
    public static class ColumnStyle {
        /**
         * 字段编码
         */
        private String columnCode;
        /**
         * 字段名称
         */
        private String columnName;
        /**
         * 字段宽
         */
        private String columnWidth;
        /**
         * 字段固定
         */
        private String columnFixed;
    }
}
